<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class GrGood extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'gr_goods';
    protected $guarded=[];

    protected $primaryKey = 'goods_id';

    public function typeInfo(){
        return $this->hasOne(GrGoodsType::class,'goods_type_id','goods_type_id');
    }
}
